package repo

import (
	models "gorm_demo/pkg/models"
	dao "gorm_demo/pkg/dao"
)

type VmInfoRepository interface {
	List() (l []*models.VmInfo)
	GetById(id int32) (*models.VmInfo, error)
	Create(m models.VmInfo) (*models.VmInfo, error)
	Update(m models.VmInfo, updates map[string]interface{}) (*models.VmInfo, error)
	Delete(m models.VmInfo) error
}

func NewVmInfoRepository() VmInfoRepository {
	return dao.VmInfoDao{}
}

